package com.dragon.mmochat.model;

import java.util.ArrayList;
import java.util.List;

//标准客服问题
public class MmochatStandardKefuProblem {
	private static MmochatSerial serial = new MmochatSerial();
	private int id;
	private String question;// 问题
	private List<String> keywords = new ArrayList<String>();// 关键字列表
	private String answer;// 回答
	private int showTimes = 0;// 由于关键字而被展示出来的次数
	private int hit = 0;// 被展示后而选中次数(如果展示次数高，但选中次数少，可能是关键字不够准确)
	private int finishTimes = 0;// 被选中为同类问题，查看回答后未继续提问的次数(继续提问占比过高，可能回答不正确)

	public MmochatStandardKefuProblem() {
		id = serial.addAndGetSerialId();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public List<String> getKeywords() {
		return keywords;
	}

	public void setKeywords(List<String> keywords) {
		this.keywords = keywords;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public int getShowTimes() {
		return showTimes;
	}

	public void setShowTimes(int showTimes) {
		this.showTimes = showTimes;
	}

	public void addShowTimes() {
		showTimes++;
	}

	public int getHit() {
		return hit;
	}

	public void setHit(int hit) {
		this.hit = hit;
	}

	public void addHit() {
		hit++;
	}

	public int getFinishTimes() {
		return finishTimes;
	}

	public void setFinishTimes(int finishTimes) {
		this.finishTimes = finishTimes;
	}

	public void addFinishTimes() {
		finishTimes++;
	}

}
